import { LAYOUT } from '@/router/constants';
import type { RouteRecordItem } from 'vc/src/router';

export const LINK_NEWS = '/news';
export const LINK_NEWS_INDEX = LINK_NEWS + '/index';

const News: RouteRecordItem = {
  path: LINK_NEWS,
  component: LAYOUT,
  meta: {
    title: '资讯',
    menuIndex: 2
  },
  children: [
    {
      path: LINK_NEWS_INDEX,
      component: () => import('@/views/modules/news/index.vue'),
      meta: {
        title: '资讯',
        hideSide: true,
        scrollDom: '.contentNews'
      }
    }
  ]
};

export default News;
